package com.recruit.wechat.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author LF
 * @since 2020-09-02
 */
@Data
@TableName("wechat_dict")
@ApiModel(value="WechatDict对象", description="")
public class WechatDict extends Model<WechatDict> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "dict_id", type = IdType.AUTO)
    private Integer dictId;

    @ApiModelProperty(value = "标签名称")
    @TableField("dict_val")
    private String dictVal;

    @ApiModelProperty(value = "标签值")
    @TableField("dict_k")
    private String dictK;

    @ApiModelProperty(value = "标签类型")
    @TableField("dict_type")
    private String dictType;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "dict_create_time",fill = FieldFill.INSERT)//新增数据时
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "dict_update_time",fill = FieldFill.INSERT_UPDATE)////新增和更新数据时
    private String updateTime;


    @ApiModelProperty(value = "备注")
    @TableField("dict_remakers")
    private String dictRemakers;

    @Override
    protected Serializable pkVal() {
        return this.dictId;
    }

    @Override
    public String toString() {
        return "WechatDict{" +
            "dictId=" + dictId +
            ", dictVal=" + dictVal +
            ", dictK=" + dictK +
            ", dictType=" + dictType +
            ", dictCreateTime=" + createTime +
            ", dictUpdateTime=" + updateTime +
            ", dictRemakers=" + dictRemakers +
        "}";
    }
}
